package com.simple.common.framework;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

/**
 * @author yasud
 * @date 2021年03月08日 10:12
 * @description
 */
public class RetrofitLoadCondition implements Condition {

    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        return Scan.enableRetrofit;
    }
}
